home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / Online / Term / Extras / Source / term-source.lha / SMakefile < prev    next >
Makefile  |  1996-10-20  |  5KB  |  125 lines

  1. ###############################################################################
  2. #
  3. #    SMakefile
  4. #
  5. #    Makefile for the `SMake' utility required to build `term'
  6. #
  7. #    Copyright © 1990-1996 by Olaf `Olsen' Barthel
  8. #        All Rights Reserved
  9. #
  10. ###############################################################################
  11.  
  12. .c.o:
  13.     sc $(CFLAGS) $<
  14.  
  15. .a.o:
  16.     asm $(AFLAGS) $<
  17.  
  18. ###############################################################################
  19. # Type of CPU to build for; note that this is *case-sensitive*!
  20. #CPU =        ANY
  21. CPU =        68030
  22.  
  23. ###############################################################################
  24. # This turns on the optimization options
  25. #OPTIMIZE =    optimize opttime optinlocal optdepth=3 optrdepth=3
  26.  
  27. ###############################################################################
  28. # These two can cut compilation times by pulling in all header files into
  29. # the global symbol table. This will make changes to header files pretty
  30. # difficult, but if you need the time...
  31. #INCLUDEFLAGS =    define=INCLUDEALL
  32. #INCLUDEFILES =    Global.h Protos.h Data.h Errors.h
  33.  
  34. ###############################################################################
  35. # The compiler can make use of the utility.library arithmetic routines. You
  36. # can enable both or just the L_UTILITY line. Note that uncommenting the
  37. # C_UTILITY line only makes sense with CPU=ANY as the '020 inline math is
  38. # both shorter and a little faster.
  39. #C_UTILITY =    utillib
  40. L_UTILITY =    define __CXM33=__UCXM33 define __CXD33=__UCXD33 \
  41.         define __CXM22=__UCXM22 define __CXD22=__UCXD22
  42.  
  43. ###############################################################################
  44. # The name of the global symbol table file to use.
  45. GSTFILE =    term.gst
  46.  
  47. ###############################################################################
  48. # Compiler, assembler and linker options; you wouldn't want to change these.
  49. CFLAGS =    mccons streq strmerge nostkchk idlen=65 nover \
  50.         params=r error=7+100+154+161 \
  51.         cpu=$(CPU) define=CPU_$(CPU) gst=$(GSTFILE) \
  52.         $(C_UTILITY) $(DEBUG) $(OPTIMIZE) \
  53.         $(INCLUDEFLAGS)
  54. AFLAGS =    -d -u -dCPU_$(CPU) -dCPU='$(CPU)'
  55. LFLAGS =    smallcode smalldata nodebug noicons \
  56.         maxhunk 100000 $(L_UTILITY)
  57.  
  58. ###############################################################################
  59. # Libraries to link with; you wouldn't want to change these.
  60. LIBS =        lib:sc.lib lib:amiga.lib
  61.  
  62. ###############################################################################
  63. # The files that make up the program; you wouldn't want to change these.
  64. STARTUP =    VersionTag.o
  65. A_OBJS =    StackCall.o
  66. C_OBJS =    About.o Accountant.o AmigaGuide.o ARexx.o \
  67.         ARexxAttributes.o ARexxCommands.o ASCIIPanel.o ASCIITransfer.o \
  68.         Beep.o Boxes.o Buffer.o Call.o \
  69.         Capture.o CapturePanel.o CaptureParser.o Chat.o \
  70.         Choose.o Clip.o ClipPanel.o Colour.o \
  71.         CommandPanel.o Config.o Console.o ControlSequences.o \
  72.         CopyPanel.o Crypt.o CursorPanel.o CustomRequest.o \
  73.         Data.o DatePanel.o DayPanel.o Dial.o \
  74.         DialList.o EditRoutine.o Emulation.o EmulationPanel.o \
  75.         EmulationProcess.o EmulationSpecial.o EndOfLineTranslate.o FastMacroPanel.o \
  76.         FastMacros.o FastMacroWindow.o FileBuffer.o FixPath.o \
  77.         Flow.o HotkeyPanel.o Hotkeys.o Identify.o \
  78.         ImportPanel.o InfoWindow.o Init.o Job.o \
  79.         KeyConvert.o Launch.o LibPanel.o LibPanelPlus.o \
  80.         Lists.o Locale.o MacroPanel.o Main.o \
  81.         Matrix.o Memory.o Menus.o MiscPanel.o \
  82.         ModemPanel.o MsgQueue.o NewMarker.o OldConfig.o OwnDevUnit.o \
  83.         Packet.o PathPanel.o PatternPanel.o Phone.o \
  84.         PhoneGroup.o PhoneList.o PhoneLogGenerator.o PhonePanel.o \
  85.         PhonePanelPlus.o PhonePanelUI.o PickDisplayMode.o PickFile.o \
  86.         PickScreen.o Print.o PrintPanel.o Raster.o \
  87.         RatePanel.o Remember.o Rendezvous.o SaveWindow.o \
  88.         Scale.o ScreenPanel.o Scroll.o SendText.o \
  89.         Serial.o SerialIO.o SerialPanel.o SortCompare.o \
  90.         Sound.o SoundPanel.o Speech.o SpeechPanel.o \
  91.         Start.o StatusDisplay.o Strings.o TerminalPanel.o \
  92.         TerminalTest.o TextBufferWindow.o TimeDate.o TimePanel.o Tools.o \
  93.         Transfer.o TransferPanel.o Translate.o TranslationPanel.o \
  94.         TrapPanel.o Traps.o UploadPanel.o UploadQueue.o \
  95.         Verify.o VSPrintf.o WindowMarker.o XEM.o XPR.o zmodem.o
  96.  
  97. OBJS =        $(STARTUP) $(A_OBJS) $(C_OBJS)
  98.  
  99. ###############################################################################
  100. # This builds the global symbol table file and the main program
  101. all:        $(GSTFILE) term
  102.  
  103. term:        $(OBJS)
  104.         slink with <<
  105.             from $(OBJS) to $@ lib $(LIBS) $(LFLAGS)
  106.         <
  107.  
  108. $(GSTFILE):    Headers.c Headers.h Strings.h OwnDevUnit.h xproto.h xem.h \
  109.         Rendezvous.h gtlayout.h Compiler.h $(INCLUDEFILES)
  110.         gst unload $@
  111.         sc $(CFLAGS) noobjname nogst makegst=$@ Headers.c
  112.  
  113. ###############################################################################
  114. # Special cases that require special options to compile.
  115. Strings.o:    Strings.c Strings.h
  116.         sc $(CFLAGS) nogst Strings.c
  117.  
  118. Start.o:    Start.c
  119.         sc $(CFLAGS) cpu=any Start.c
  120.  
  121. ###############################################################################
  122. # Remove all working files and the main program.
  123. clean:
  124.     @-delete quiet "\#?.o" term term.gst
  125.